/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.miit.elearning.services.vtutoribm;

/**
 *
 * @author Cyclone
 */
public class VirtualTutorIBMServiceException extends Exception {

    public VirtualTutorIBMServiceException(int tutorId, int courseId) {
        this.tutorId = tutorId;
        this.courseId = courseId;
    }

    protected int tutorId;
    protected int courseId;

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public int getTutorId() {
        return tutorId;
    }

    public void setTutorId(int tutorId) {
        this.tutorId = tutorId;
    }


    @Override
    public String getMessage() {
        //return super.getMessage();
        return String.format("Tutor id%i is not not signed on course id%i", tutorId, courseId);
    }



}
